import request from '@/utils/request'

/**
 * 演练执行事件信息
 * @param {planId} planId 
 * @returns 
 */
export function EventInfList(planId) {
    return request({
        url: '/drill/content/selectByPlanId/' + planId,
        method: 'get',
    })
}

/**
 * 场景按钮信息
 * @param {planId} planId 
 * @returns 
 */
export function EventbutList(planId) {
    return request({
        url: '/drill/scene/selectByPlanId/' + planId,
        method: 'get',
    })
}

/**
 * 场景按钮信息
 * @param {sceneId} sceneId 
 * @returns 
 */
export function ScenetList(sceneId) {
    return request({
        url: '/drill/ActionGroup/selectByContentIdAndSceneId/' + sceneId,
        method: 'get',
    })
}

/**
 * 场景分组查询接口
 * @param {*} query 
 * @returns 
 */
export function SceneQueriesList(query) {
    return request({
        url: '/drill/ActionGroup/list',
        method: 'get',
        params: query
    })
}

/**
 * 场景发布接口
 * @param {contentId,status} data 
 * @returns 
 */
export function SceneRelease(data) {
    return request({
        url: '/drill/scene/SceneStatus',
        method: 'put',
        data: data
    })
}

/**
 * 终止接口
 * @param {actionGroupId,status} data 
 * @returns 
 */
export function SceneOver(data) {
    return request({
        url: '/drill/ActionGroup',
        method: 'put',
        data: data
    })
}

